#include "dbcconfig.h"
#include <iostream>

using namespace std;

int main(int argc, char **argv)
{
	if (argc < 2)
	{
		cerr<<"参数错误。"<<endl;
		return 1;
	}

	ConfReader reader;

	Value value;

	int ret = reader.Read(argv[1], value);

	if (ret)
	{
		cerr<<"解析文件:"<<argv[1]<<"失败,原因:"<<reader.GetErrmsg();
		return 1;
	}

	value.Print();
}
